<?php

namespace Home\Controller;

use Think\Controller;
include 'base.php';
class IndexController extends BaseController{

    public function index(){
        $cate = M('category')->select();
        $aboutImg = M('about_pho')->order('id desc')->limit(0,2)->select();
        $chooseImg = M('choose_pho')->order('id desc')->limit(0,1)->select();
        $pro_disImg = M('pro_dis_pho')->order('id desc')->limit(0,3)->select();
        $bannerImg = M('banner_pho')->order('id desc')->limit(0,3)->select();
        $aboutArt = M('about_art')->order('id desc')->limit(0,1)->select();
        $chooseArt = M('choose_art')->order('id desc')->limit(0,1)->select();
        $pro_disArt = M('pro_dis_art')->order('id desc')->limit(0,1)->select();
        $contactArt = M('contact_art')->order('id desc')->limit(0,1)->select();


        $this->assign('contactArt',$contactArt);
        $this->assign('pro_disArt',$pro_disArt);
        $this->assign('aboutArt',$aboutArt);
        $this->assign('chooseArt',$chooseArt);
        $this->assign('pro_disImg',$pro_disImg);
        $this->assign('bannerImg',$bannerImg);
        $this->assign('chooseImg',$chooseImg);
        $this->assign('aboutImg',$aboutImg);
        $this->assign("cate",$cate);
        $this->display();
    }
}
